package com.zy.studentSide.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.studentSide.dao.StudentDao;
import com.zy.studentSide.entity.Student;
import com.zy.studentSide.service.IStudentService;
import com.zy.teacherSide.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author qu
 */
@Service
public class IStudentServiceImpl extends ServiceImpl<StudentDao, Student> implements IStudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public Student studentLogin(String studentNum, String studentPassword) {
        return studentDao.studentLogin(studentNum, studentPassword);
    }

    @Override
    public Student getStudentById(String studentNum) {
        return studentDao.getStudentById(studentNum);
    }

    @Override
    public Student getStudentByStudentId(Integer studentId) {
        return studentDao.getStudentByStudentId(studentId);
    }
}
